<!-- 企业团购抵用券列表 Start -->
<table class="table table-striped ddd-table" >
		<thead>
			<tr>
				<th>优惠券名称</th>
				<th>关联商品名称</th>
				<th>配送次数</th>
				<th>普通售价</th>
				<th>优惠价格</th>
				<th>使用有效期</th>
				<th>已使用/总数</th>
				<th>企业名称</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			<col width="10%"></col>
			{{if isEmpty(records)}}
			
			{{else}}
				{{each records as data index}}
					<tr class="con_detail_cls">
						<td>{{data.act_name}}</td>
						<td>{{data.goods_name}}</td>
						<!-- 销售商品 -->
						{{if data.goods_label_type == 1}}
							<td>
								<p>——</p>
							</td>
							<td>
								<!-- 会员价 -->
								{{each data.coupon_goods_price_list as price}}
									<p>{{price.goods_common_price}}</p>
								{{/each}}
							</td>
							<td>
								<!-- 优惠价格 -->
								{{each data.coupon_goods_price_list as price}}
									<p>{{price.goods_coupon_price}}</p>
								{{/each}}
							</td>
						<!-- 服务商品 -->
						{{else if data.goods_label_type == 2}}
							<td>
								<!-- 配送次数 -->
								{{each data.coupon_goods_price_list as price}}
									<p>{{price.goods_sku_times}}次</p>
								{{/each}}
							</td>
							<td>
								<!-- 普通售价 -->
								{{each data.coupon_goods_price_list as price}}
									<p>{{price.goods_common_price}}</p>
								{{/each}}
							</td>
							<td>
								<!-- 优惠价格 -->
								{{each data.coupon_goods_price_list as price}}
									<p>{{price.goods_coupon_price}}</p>
								{{/each}}
							</td>
						{{else}}
							<td></td>
							<td></td>
							<td></td>
						{{/if}}
						
						<td>{{dateFormat(data.valid_begin_time,'yyyy/MM/dd hh:mm:ss')}}~{{dateFormat(data.valid_end_time,'yyyy/MM/dd hh:mm:ss')}}</td>
						<td>{{data.used_num}} / {{data.total_num}}</td>
						<td>{{data.enter_name}}</td>
						{{if data.act_status == 1}}
							<td><span class="act_status_cls">未开始</span></td>
						{{else if data.act_status == 2}}
							<td><span class="f-green act_status_cls">进行中</span></td>
						{{else if data.act_status == 3}}
							<td><span class="f-red act_status_cls">已过期</span></td>
						{{else if data.act_status == 4}}
							<td><span class="f-gray act_status_cls">已失效</span></td>
						{{else}}
							<td></td>
						{{/if}}
						<td>
							<a href="javascript:void(0);" class="viewCoupon" data-id="{{data.id}}" data-name="{{data.act_name}}">查看优惠券</a>
							{{if data.act_status == 1}}
								<a href="#market/activitycoupon/edit/{{data.id}}/{{data.coupon_type}}/{{pageNo}}" class="ml10 editCoupon">编辑</a>&nbsp;
							{{/if}}
							{{if data.act_status == 1 || data.act_status == 2}}
								<a href="javascript:void(0);" class="f-gray ml10 disabledCoupon" data-id="{{data.id}}">失效</span>
							{{/if}}
						</td>
					</tr>
				{{/each}}
			{{/if}}
		</tbody>
</table>
<!-- 兑换券列表 End -->